package n

import android.content.Context
import androidx.preference.PreferenceManager

object CalImpl:Calc {
    override fun s(c: Context, n: String, s: String) {
        val e = PreferenceManager.getDefaultSharedPreferences(c).edit()
        e.putString(n,s)
        e.apply()
    }
}

interface Calc{
    fun s(c:Context,n: String, s: String)
}